<div class="nav-wrapper">
</div>
<script id="classify" type="text/html">
    {{each res item }}
    <div class="example-classify-wrapper">
        <h3>
            <span>{{item.title}}</span>
            <i class="icon iconfont icon-Add"></i>
        </h3>
        <ul class="">
            {{each item.exampleList valueObj }}
            <li>
                <a href="/{{item.type}}/{{valueObj.link}}">{{valueObj.text}}</a>
            </li>
            {{/each}}
        </ul>
    </div>
    {{/each}}
</script>

<script>
    $.ajax({
        type: "get",
        url: "http://example.hyfarsight.com/api/example_classify_list",
        data: null,
        dataType: "JSON",
        success: function(response) {
            if (response.code == 0) {
                $('.nav-wrapper').html(template('classify', response))
            }
        }
    });
</script>